home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Files / deleteEmptyDir / deleteEmptyDir README next >
Encoding:
Text File  |  1992-07-15  |  651 b   |  22 lines  |  [TEXT/ttxt]

  1. deleteEmptyDir and listEmptyDir
  2.  
  3. sample MPW tools
  4.  
  5. deleteEmptyDir and listEmptyDir identify all empty folders on a specified volume.  If the tool is named deleteEmptyDir, the directories will be removed.
  6.   
  7. This purpose of this snippet is to show how easy (hah!) and useful (well, yeah) the PBCatSearch call is.
  8.  
  9.  
  10. Note that deleteEmptyDir and listEmptyDir are identical; the tool just checks its name when running, and if it is 'deleteEmptyDir', calls FSpDelete for each empty directory found.
  11.  
  12.  
  13.   Syntax:
  14.            deleteEmptyDir <volName>
  15.            listEmptyDir <volName>
  16.             
  17.   Example:
  18.            listEmptyDir myHardDisk:
  19.   
  20.  
  21. Greg Robbins   9/91
  22.